import Mock from '../mock-class.js'

const departments = [
	{
		id: 1,
		name: '技术部',
		createTime: '2022-04-10 12:25:36'
	},
	{
		id: 2,
		name: '销售部',
		createTime: '2022-04-10 12:25:36'
	},
	{
		id: 3,
		name: '客服部',
		createTime: '2022-04-10 12:25:36'
	},
	{
		id: 4,
		name: '管理部',
		createTime: '2022-04-10 12:25:36'
	},
]

Mock.mock(Mock.baseURL + '/department/list', 'get', function (options) {
	// console.log(options)
	return {
		code: 200,
		data: {
			list: departments,
			total: 3
		},
		message: ''
	}
})